﻿$(function () {
    //初始化控件
    laydate.render({ elem: '#txtlivePtime', type: 'datetime' });
    laydate.render({
        elem: '#txtilltime', type: 'datetime', done: function (value, date) {
            if (value != "" && !IsEmpty($("#txtexcjmTime").val())) {
                var stime = new Date(value.replace(/-/g, "/")).getTime();
                var etime = new Date($("#txtexcjmTime").val().replace(/-/g, "/")).getTime();
                var minutes = Math.floor((etime - stime) / (60 * 1000));
                $("#txtexcjmOntVal").val(minutes);
            }
            else {
                $("#txtexcjmOntVal").val("");
            }
        }
    });
    laydate.render({
        elem: '#txtcomedTime', type: 'datetime', done: function (value, date) {
            if (value != "" && !IsEmpty($("#txtexcjmTime").val())) {
                var stime = new Date(value.replace(/-/g, "/")).getTime();
                var etime = new Date($("#txtexcjmTime").val().replace(/-/g, "/")).getTime();
                var minutes = Math.floor((etime - stime) / (60 * 1000));
                $("#txtexcjmDntVal").val(minutes);
            }
            else {
                $("#txtexcjmDntVal").val("");
            }
        }
    });
    laydate.render({
        elem: '#txtexcjmTime', type: 'datetime', done: function (value, date) {
            if (value == "") {
                $("#txtexcjmOntVal").val("");
                $("#txtexcjmDntVal").val("");
                return;
            }
            if (!IsEmpty($("#txtilltime").val())) {
                var stime = new Date($("#txtilltime").val().replace(/-/g, "/")).getTime();
                var etime = new Date(value.replace(/-/g, "/")).getTime();
                var minutes = Math.floor((etime - stime) / (60 * 1000));
                $("#txtexcjmOntVal").val(minutes);
            }
            if (!IsEmpty($("#txtcomedTime").val())) {
                var stime = new Date($("#txtcomedTime").val().replace(/-/g, "/")).getTime();
                var etime = new Date(value.replace(/-/g, "/")).getTime();
                var minutes = Math.floor((etime - stime) / (60 * 1000));
                $("#txtexcjmDntVal").val(minutes);
            }
        }
    });
    laydate.render({ elem: '#txtexcccfinishTime', type: 'datetime' });
    laydate.render({ elem: '#txtfirstxgagainTime', type: 'datetime' });
    laydate.render({ elem: '#txtjmexitPtime', type: 'datetime' });
    laydate.render({ elem: '#txtjmdieTime', type: 'datetime' });
    SetValue();
    position();
    $("#btnSave").on("click", function () { savemr(); });
    $("#btnPrint").on("click", function () { printmr(); });
    $("#btnDel").on("click", function () { delmr(); });
    $("#btnHisback").on("click", function () { window.location.href = "/StrokeCenter/MedicalRecords/Index"; });
    $("#btnTimePath").on("click", function () { if (IsEmpty($("#txtPatientId").val())) return; window.location.href = "/StrokeCenter/MedicalRecords/Timeline?pid=" + $("#txtPatientId").val(); });
    $("#btnTimeLine").on("click", function () {
        if (IsEmpty($("#txtPatientId").val())) return;
        var url = "/StrokeCenter/Pathway/Index?id=" + $("#txtPatientId").val();
        window.parent.top.tab.addTabItem({ tabid: "time" + $("#txtPatientId").val(), text: "时间轴", url: url });
    });
    if (GetQueryString("review") == 1) {
        $("#btnReview").show();
        $("#btnReview").on("click", function () {
            $.ligerDialog.open({
                height: 300,
                width: 320,
                title: '病历审核',
                url: '/StrokeCenter/MedicalRecords/Review',
                data: { pid: $("#txtPatientId").val() },
            });
        });
    }
    $(":text[typeof=float]").keyup(function () {
        var c = $(this);
        if (/[^\d|\.]/.test(c.val())) {
            var num = c.val().replace(/[^\d|\.]/g, '');
            $(this).val(num == "" ? "" : parseInt(num));
        }
    }).blur(function () {
        if (!/^\d+(\.\d{0,2})?$/.test($(this).val()))
            $(this).val("0.00");
    });
    $(":text[typeof=number]").keyup(function () {
        var c = $(this);
        if (/[^\d]/.test(c.val())) {
            var num = c.val().replace(/[^\d]/g, '');
            $(this).val(num == "" ? "" : parseInt(num));
        }
    }).blur(function () {
        if (!/\d+/.test($(this).val()))
            $(this).val("0");
    });
    //计算BMI
    $("#txtpheigh,#txtpweight").on("blur", function () {
        var float2regex = /^\d+(\.\d{0,2})?$/;
        var height = $("#txtpheigh").val();
        var weight = $("#txtpweight").val();
        if (!float2regex.test(height)) return;
        if (!float2regex.test(weight)) return;
        if (height == 0) return;
        //计算BMI
        var height2 = parseInt(height) / 100;
        var bmiVal = (parseFloat(weight) / (height2 * height2)).toFixed(2);
        $("#txtbmiVal").val(bmiVal);
    });
    $('input[name="rdocomeinismRs"]').click(function () {
        if ($("input[name='rdocomeinismRs']:checked").val() == 1) {
            $("#rdocomeinismRsYes").show();
        } else {
            $("#rdocomeinismRsYes").hide();
            $("#txtcomeinmRs").val("");
        }
    });
    $('input[name="rdocomeinisNihss"]').click(function () {
        if ($("input[name='rdocomeinisNihss']:checked").val() == 1) {
            $("#rdocomeinisNihssYes").show();
        } else {
            $("#rdocomeinisNihssYes").hide();
            $("#txtcomeinNihss").val("");
        }
    });
    $('input[name="rdoexcrshisnihss"]').click(function () {
        if ($("input[name='rdoexcrshisnihss']:checked").val() == 1) {
            $("#rdoexcrshisnihssYes").show();
        } else {
            $("#rdoexcrshisnihssYes").hide();
            $("#txtexcrshnihssVal").val("");
        }
    });
    $('input[name="rdoexcrshisnihss24h"]').click(function () {
        if ($("input[name='rdoexcrshisnihss24h']:checked").val() == 1) {
            $("#rdoexcrshisnihss24hYes").show();
        } else {
            $("#rdoexcrshisnihss24hYes").hide();
            $("#txtexcrshnihss24hVal").val("");
        }
    });
    $('input[name="rdoexcrshisnihss2_7d"]').click(function () {
        if ($("input[name='rdoexcrshisnihss2_7d']:checked").val() == 1) {
            $("#rdoexcrshisnihss2_7dYes").show();
        } else {
            $("#rdoexcrshisnihss2_7dYes").hide();
            $("#txtexcrshnihss2_7dVal").val("");
        }
    });
    $('input[name="rdoistoxgnktzl"]').click(function () {
        if ($("input[name='rdoistoxgnktzl']:checked").val() == 1) {
            $("#rdoistoxgnktzlNo").hide();
        } else {
            $("#rdoistoxgnktzlNo").show();
        }
    });
    $('input[name="rdoexcisxgsqpgNihss"]').click(function () {
        if ($("input[name='rdoexcisxgsqpgNihss']:checked").val() == 1) {
            $("#rdoexcisxgsqpgNihssYes").show();
        } else {
            $("#rdoexcisxgsqpgNihssYes").hide();
        }
    });
    $('input[name="rdoexcisAspect"]').click(function () {
        if ($("input[name='rdoexcisAspect']:checked").val() == 1) {
            $(".divExcisAspect").show();
        } else {
            $(".divExcisAspect").hide();
        }
    });
    $('input[name="rdoxgnktssisNihss24h"]').click(function () {
        if ($("input[name='rdoxgnktssisNihss24h']:checked").val() == 1) {
            $("#rdoxgnktssisNihss24hYes").show();
        } else {
            $("#rdoxgnktssisNihss24hYes").hide();
            $("#txtxgnktssNihss24hVal").val("");
        }
    });
    $('input[name="rdoxgnktssisNihss2_7d"]').click(function () {
        if ($("input[name='rdoxgnktssisNihss2_7d']:checked").val() == 1) {
            $("#rdoxgnktssisNihss2_7dYes").show();
        } else {
            $("#rdoxgnktssisNihss2_7dYes").hide();
            $("#txtxgnktssNihss2_7dVal").val("");
        }
    });
    $('input[name="rdolivepiskxxbzl48h"]').click(function () {
        if ($("input[name='rdolivepiskxxbzl48h']:checked").val() == 1) {
            $("#rdolivepiskxxbzl48hYes").show();
        } else {
            $("#rdolivepiskxxbzl48hYes").hide();
        }
    });
    $('input[name="rdolivepisknzl48h"]').click(function () {
        if ($("input[name='rdolivepisknzl48h']:checked").val() == 1) {
            $("#rdolivepisknzl48hYes1").show();
            $("#rdolivepisknzl48hYes2").show();
        } else {
            $("#rdolivepisknzl48hYes1").hide();
            $("#rdolivepisknzl48hYes2").hide();
        }
    });
    $('input[name="rdolivepisjy"]').click(function () {
        if ($("input[name='rdolivepisjy']:checked").val() == 1) {
            $("#rdolivepisjyYes").show();
        } else {
            $("#rdolivepisjyYes").hide();
        }
    });
    $('input[name="rdolivepistz"]').click(function () {
        if ($("input[name='rdolivepistz']:checked").val() == 1) {
            $("#rdolivepistzYes").show();
        } else {
            $("#rdolivepistzYes").hide();
        }
    });
    $('input[name="rdolivepisjt"]').click(function () {
        if ($("input[name='rdolivepisjt']:checked").val() == 1) {
            $("#rdolivepisjtYes td").show();
        } else {
            $("#rdolivepisjtYes td").hide();
        }
    });
    $('input[name="rdojmiskfzl"]').click(function () {
        if ($("input[name='rdojmiskfzl']:checked").val() == 1) {
            $("#rdojmiskfzlYes1 td").show();
            $("#rdojmiskfzlYes2 td").show();
        } else {
            $("#rdojmiskfzlYes1 td").hide();
            $("#rdojmiskfzlYes2 td").hide();
        }
    });
    $('input[name="rdojmheathisxj"]').click(function () {
        if ($("input[name='rdojmheathisxj']:checked").val() == 1) {
            $("#rdojmheathisxjYes").show();
        } else {
            $("#rdojmheathisxjYes").hide();
        }
    });
    $('input[name="rdojmexitPType"]').click(function () {
        if ($("input[name='rdojmexitPType']:checked").val() == 4) {
            $("#rdojmexitPTypeYes1").show();
            $("#rdojmexitPTypeYes2").show();
            $("#rdojmexitPTypeYes3").show();
        } else {
            $("#rdojmexitPTypeYes1").hide();
            $("#rdojmexitPTypeYes2").hide();
            $("#rdojmexitPTypeYes3").hide();
        }
    });
    $('input[name="rdojmleavehospismRs"]').click(function () {
        if ($("input[name='rdojmleavehospismRs']:checked").val() == 1) {
            $("#rdojmleavehospismRsYes").show();
        } else {
            $("#rdojmleavehospismRsYes").hide();
            $("#txtjmleavehospmRsVal").val("");
        }
    });
    $('input[name="rdojmexitisHihss"]').click(function () {
        if ($("input[name='rdojmexitisHihss']:checked").val() == 1) {
            $("#rdojmexitisHihssYes").show();
        } else {
            $("#rdojmexitisHihssYes").hide();
            $("#txtjmexitHihssVal").val("");
        }
    });
    //单选框
    $("input[type=radio]").parent().addClass("radio_label");
    $("input[type=radio][disabled!=disabled]").click(function (e) {
        $("input[type=radio][name='" + $(this).attr('name') + "']").parent().removeClass("checked");
        $(this).parent().addClass("checked");
    });
    $("input[type=radio][checked=checked]").parent().addClass("checked");
    if (navigator.userAgent.indexOf("Firefox") > 0) { $(":radio,:checkbox").hide(); }
    //复选框	 
    $("input[type=checkbox]").parent().addClass("checkbox_label");
    $("input[type=checkbox][disabled!=disabled]").click(function (e) {
        if ($(this).parent().hasClass("checked"))
            $(this).parent().removeClass("checked");
        else
            $(this).parent().addClass("checked");
    });
    $("input[type=checkbox][checked=checked]").parent().addClass("checked");
});
function position() {
    LiftEffect({
        "control1": ".lift-nav",
        "control2": ".lift",
        "target": [".t0", ".t1", ".t2", ".t3", ".t4", ".t5", ".t6", ".t7", ".t8", ".t9"],
        "current": "current"
    });
}
function printmr() {
    if ($("#txtPatientId").val() == "") return;
    window.parent.top.tab.addTabItem({ tabid: "print" + $("#txtPatientId").val(), text: "病历-" + $("#txtrealName").val(), url: "/StrokeCenter/MedicalRecords/JmrsxgnjrzlmrPrint?pid=" + $("#txtPatientId").val() });
}
function delmr() {
    if ($("#txtPatientId").val() == "") return;
    $.ligerDialog.confirm('确定删除该患者吗', function (yes) {
        if (yes) {
            var url = "/StrokeCenter/PatientList/GiveUp";
            $.get(url, {
                rnd: new Date().getMilliseconds(),
                patientId: $("#txtPatientId").val()
            }, function (data, textStatus) {
                if (textStatus == "success") {
                    var d = $.parseJSON(data);
                    if (d.Result == 1) {
                        $.ligerDialog.success("操作成功", "", function () {
                            window.location.href = "/StrokeCenter/MedicalRecords/index";
                        });
                    }
                    else if (d.Result == 0) {
                        $.ligerDialog.error(d.Body);
                    }
                    else {
                        $.ligerDialog.error("程序错误");
                    }
                }
            })
        }
    });
}
function savemr() {
    if ($("#txtPatientId").val() == "") return;
    var data = {};
    $.each(FiledArray, function (i, a) {
        var datadetail = {};
        $.each(a.column, function (j, b) {
            var str = "";
            if (b.type == "text" || b.type == 'date') {
                str = $('#' + b.code).val();
            } else if (b.type == "radio") {
                str = $("input[name='" + b.code + "']:checked").val();
            } else if (b.type == "checkbox") {
                var str = CheckBoxToArrStr(b.code);
            }
            datadetail[b.tocode] = str == "" ? b.value : str;
        })
        data[a.table] = datadetail;
    })
    $.post("/StrokeCenter/MedicalRecords/Set_IntravenousThrombolysis", { datajson: JSON.stringify(data), rnd: getRnd() }, function (data, textStatus) {
        if (textStatus == "success") {
            var d = $.parseJSON(data);
            if (d.Result == 1) {
                $.ligerDialog.success("保存成功", "", function () {
                    window.location.reload(true);
                });
            }
            else if (d.Result == 0) {
                $.ligerDialog.error(d.Body);
            }
            else {
                $.ligerDialog.error("程序错误");
            }
        }
    })
}

function SetValue() {
    var patientid = $('#txtPatientId').val();
    if (IsEmpty(patientid)) {
        $.ligerDialog.error("获取数据失败！");
        return;
    }
    waitting1 = $.ligerDialog.waitting('加载中，请稍候...');
    $.ajax({
        url: '/StrokeCenter/MedicalRecords/Get_IntravenousThrombolysis?patientid=' + patientid + '&rnd=' + getRnd(),
        cache: false,
        dataType: 'json',
        success: function (data) {
            $.each(FiledArray, function (i, a) {
                var datadetail = eval("data." + a.table);
                if (datadetail != undefined && datadetail != null) {
                    $.each(a.column, function (j, b) {
                        if (b.type == "text") {
                            if (IsEmpty(eval("datadetail." + b.tocode)) || parseInt(eval("datadetail." + b.tocode)) == 0) return true;
                            $('#' + b.code).val(eval("datadetail." + b.tocode));
                            $("input[name='" + b.code + "']").blur();
                        } else if (b.type == "date") {
                            $('#' + b.code).val(obj2Timemm(eval("datadetail." + b.tocode)));
                        } else if (b.type == "radio") {
                            RadioSetVal(b.code, eval("datadetail." + b.tocode), true);
                            $("input[name='" + b.code + "'][value='" + eval("datadetail." + b.tocode) + "']").click();
                        } else if (b.type == "checkbox") {
                            CheckBoxSetVal(b.code, eval("datadetail." + b.tocode), true);
                        }
                    })
                }
            })
        },
        complete: function () {
            waitting1.close();
        }
    });
}


var FiledArray = [
    {
        table: "patientInfo",
        column: [
            { name: "ID", code: "txtPIId", tocode: "ID", value: "0", type: "text" },
            { name: "姓名", code: "txtrealName", tocode: "PATIENT_NAME", value: "", type: "text" },
            { name: "性别", code: "rdogender", tocode: "PATIENT_SEX", value: "", type: "radio" },
            { name: "身份证", code: "txtIDcard", tocode: "PATIENT_ID_NUM", value: "", type: "text" },
            { name: "住院号", code: "txtlivePid", tocode: "Hospital_ID", value: "", type: "text" },
            //{ name: "病案号", code: "txtpataId", tocode: "PATIENT_ID", value: "", type: "text" },
            { name: "病人编号", code: "txtpatId", tocode: "PATIENT_ID", value: "", type: "text" },
            { name: "来院方式", code: "rdocomeType", tocode: "PATIENT_ARRIVE_CLASS", value: "", type: "radio" }
        ]
    },
    {
        table: "ambulanceInfo",
        column: [
            { name: "ID", code: "txtAIId", tocode: "ID", value: "0", type: "text" },
            { name: "txtpatId", code: "txtpatId", tocode: "PATIENT_ID", value: "", type: "text" },
            { name: "发病时间", code: "txtilltime", tocode: "EMS_DISEASE_TIME", value: "", type: "date" },
            { name: "住院时间", code: "txtlivePtime", tocode: "AdmissionTime", value: "", type: "date" },
            { name: "到院时间", code: "txtcomedTime", tocode: "EMS_ARRIVEDOOR_TIME", value: "", type: "date" },
            { name: "入院途径", code: "rdocomeinType", tocode: "AdmissionPath", value: "", type: "radio" }
        ]
    },
    {
        table: "patientAIS",
        column: [
            { name: "ID", code: "txtPAId", tocode: "ID", value: "0", type: "text" },
            { name: "txtpatId", code: "txtpatId", tocode: "Patient_ID", value: "", type: "text" },
            { name: "发病", code: "rdoillshow", tocode: "Base_AIS_Type", value: "0", type: "radio" },
            { name: "是否在院卒中", code: "rdoisinhospill", tocode: "Base_AIS_Hospital", value: "0", type: "radio" },
            { name: "入院mRS评分", code: "rdocomeinismRs", tocode: "Assessment_MRS_Bool", value: "0", type: "radio" },
            { name: "评分分数", code: "txtcomeinmRs", tocode: "Assessment_MRS_Score", value: "", type: "text" },
            { name: "入院NIHSS评分", code: "rdocomeinisNihss", tocode: "Assessment_Nihss_Bool", value: "0", type: "radio" },
            { name: "评分分数", code: "txtcomeinNihss", tocode: "Assessment_Nihss_Score", value: "", type: "text" },
            { name: "吞咽功能评估", code: "rdotygnpgischk", tocode: "Assessment_Swallowing_Bool", value: "0", type: "radio" },
            { name: "洼田饮水实验", code: "txtwtyssyVal", tocode: "Assessment_Swallowing_Content", value: "", type: "text" },
            { name: "是否有症状", code: "rdoishaveill", tocode: "Assessment_Symptoms_Bool", value: "0", type: "radio" },
            { name: "颈部血管检查", code: "cbxjbxgcschk", tocode: "Assessment_NeckBloodVessel_Type", value: "", type: "checkbox" },
            { name: "结果/是否有狭窄", code: "rdoreshavexz", tocode: "Assessment_NeckBloodVessel_Bool", value: "0", type: "radio" },

            { name: "发病机制", code: "rdoshowillType", tocode: "TOAST__Score", value: "0", type: "radio" },

            { name: "是否进行静脉溶栓", code: "rdoexcjmisdoing", tocode: "Treatment_Perform_Bool", value: "0", type: "radio" },
            { name: "静脉溶栓场所", code: "rdoexcjmaddress", tocode: "Treatment_Perform_Adress", value: "0", type: "radio" },
            { name: "静脉溶栓时间", code: "txtexcjmTime", tocode: "Treatment_Perform_Time", value: "", type: "date" },
            { name: "未进行静脉溶栓原因", code: "chkexcjmreson", tocode: "Treatment_NOPerform_Why", value: "", type: "checkbox" },
            { name: "ONT", code: "txtexcjmOntVal", tocode: "Treatment_ONT", value: "", type: "text" },
            { name: "DNT", code: "txtexcjmDntVal", tocode: "Treatment_DNT", value: "", type: "text" },
            { name: "静脉溶栓药物", code: "rdoexcjmrsyw", tocode: "Treatment_Drug_Type", value: "0", type: "radio" },
            { name: "给药总量", code: "txtexcgysummg", tocode: "Treatment_Drug_Total", value: "", type: "text" },
            { name: "溶栓并发症", code: "cbxexcrsbfz", tocode: "Treatment_Complications", value: "", type: "checkbox" },
            { name: "溶栓后NIHSS评分", code: "rdoexcrshisnihss", tocode: "Treatment_Nihss_Bool", value: "0", type: "radio" },
            { name: "评分分数", code: "txtexcrshnihssVal", tocode: "Treatment_Nihss_Score", value: "", type: "text" },
            { name: "溶栓后24H NIHSS评分", code: "rdoexcrshisnihss24h", tocode: "Treatment_Nihss24H_Bool", value: "0", type: "radio" },
            { name: "评分分数", code: "txtexcrshnihss24hVal", tocode: "Treatment_Nihss24H_Score", value: "", type: "text" },
            { name: "7±2天 NIHSS评分", code: "rdoexcrshisnihss2_7d", tocode: "Treatment_Nihss7D_Bool", value: "0", type: "radio" },
            { name: "评分分数", code: "txtexcrshnihss2_7dVal", tocode: "Treatment_Nihss7D_Score", value: "", type: "text" },

            { name: "给予血管内开通治疗", code: "rdoistoxgnktzl", tocode: "Patency_Perform_Bool", value: "0", type: "radio" },
            { name: "未给予血管内开通治疗原因", code: "cbxunxgnktzlyy", tocode: "Patency_NOPerform_Why", value: "", type: "checkbox" },
            { name: "NIHSS评分", code: "rdoexcisxgsqpgNihss", tocode: "Patency_Assessment_Bool", value: "0", type: "radio" },
            { name: "评分分数", code: "txtexcisxgsqpgNihssVal", tocode: "Patency_Assessment_Score", value: "", type: "text" },
            { name: "ASPECP评分", code: "rdoexcisAspect", tocode: "Patency_Aspect_Bool", value: "0", type: "radio" },
            { name: "CT评分", code: "txtexcCTVal", tocode: "Patency_CT_Score", value: "", type: "text" },
            { name: "MRI评分", code: "txtexcMriVal", tocode: "Patency_MRI_Score", value: "", type: "text" },
            { name: "TICI分级", code: "rdoticilevel", tocode: "Patency_TICI_LV", value: "0", type: "radio" },
            { name: "穿刺完成时间", code: "txtexcccfinishTime", tocode: "Patency_Piercing_Time", value: "", type: "date" },
            { name: "OPT", code: "txtexcOPTVal", tocode: "Patency_OPT", value: "", type: "text" },
            { name: "DPT", code: "txtexcDPTVal", tocode: "Patency_DPT", value: "", type: "text" },
            { name: "血管内开通方法", code: "cbxxgnOpenType", tocode: "Patency_Methods_Type", value: "", type: "checkbox" },
            { name: "术后即刻评估", code: "rdoxgnOpenedIsNihss", tocode: "Patency_End_Score", value: "0", type: "radio" },
            { name: "TICI分级", code: "rdoxgnOpenedticilevel", tocode: "Patency_EndTICI_LV", value: "0", type: "radio" },
            { name: "首次血管再通时间", code: "txtfirstxgagainTime", tocode: "Patency_FirstThrough_Time", value: "", type: "date" },
            { name: "DRT", code: "txtfirstxgagainDrt", tocode: "Patency_End_DPT", value: "", type: "text" },
            { name: "手术并发症", code: "cbxxgnktssbfz", tocode: "Patency_Complications", value: "", type: "checkbox" },
            { name: "术后24hNIHSS评分", code: "rdoxgnktssisNihss24h", tocode: "Patency_Nihss24H_Bool", value: "0", type: "radio" },
            { name: "评分分数", code: "txtxgnktssNihss24hVal", tocode: "Patency_Nihss24H_Score", value: "", type: "text" },
            { name: "7±2天 NIHSS评分", code: "rdoxgnktssisNihss2_7d", tocode: "Patency_Nihss7D_Bool", value: "0", type: "radio" },
            { name: "评分分数", code: "txtxgnktssNihss2_7dVal", tocode: "Patency_Nihss7D_Score", value: "", type: "text" },

            { name: "48H内抗血小板治疗", code: "rdolivepiskxxbzl48h", tocode: "Drug_24HKXXB_Bool", value: "0", type: "radio" },
            { name: "药物名称", code: "cbxlivepkxxbzl48hy", tocode: "Drug_24HKXXB_Type", value: "", type: "checkbox" },
            { name: "发病48H内抗凝治疗", code: "rdolivepisknzl48h", tocode: "Drug_24HKN_Bool", value: "0", type: "radio" },
            { name: "药物名称", code: "cbxlivepisknzl48hy", tocode: "Drug_24HKN_Type", value: "", type: "checkbox" },
            { name: "降压", code: "rdolivepisjy", tocode: "Drug_JYYW_Bool", value: "0", type: "radio" },
            { name: "药物名称", code: "cbxlivepjyy", tocode: "Drug_JYYW_Type", value: "", type: "checkbox" },
            { name: "调脂", code: "rdolivepistz", tocode: "Drug_TZYW_Bool", value: "0", type: "radio" },
            { name: "药物种类", code: "cbxliveptzy", tocode: "Drug_TZYW_Type", value: "", type: "checkbox" },
            { name: "降糖", code: "rdolivepisjt", tocode: "Drug_JTYW_Bool", value: "0", type: "radio" },
            { name: "药物种类", code: "cbxlivepisjty", tocode: "Drug_JTYW_Type", value: "", type: "checkbox" },

            { name: "接受康复治疗", code: "rdojmiskfzl", tocode: "Rehabilitation_Treatment_Bool", value: "0", type: "radio" },
            { name: "康复治疗方式", code: "cbxjmkfzlType", tocode: "Rehabilitation_Treatment_Type", value: "", type: "checkbox" },
            { name: "康复治疗场所", code: "cbxjmkfzlAddr", tocode: "Rehabilitation_Treatment_Adress", value: "", type: "checkbox" },

            { name: "健康宣教", code: "rdojmheathisxj", tocode: "Health_Education_Bool", value: "0", type: "radio" },
            { name: "宣教方式", code: "cbxjmheathxjType", tocode: "Health_Education_Type", value: "", type: "checkbox" },

            { name: "出院时间", code: "txtjmexitPtime", tocode: "Hospital_Out_Time", value: "", type: "date" },
            { name: "离院方式", code: "rdojmexitPType", tocode: "Hospital_Out_Type", value: "0", type: "radio" },
            { name: "死亡时间", code: "txtjmdieTime", tocode: "Death_Time", value: "", type: "date" },
            { name: "原因", code: "cbxjmdieReason", tocode: "Death_Why", value: "", type: "checkbox" },
            { name: "出院mRS评分", code: "rdojmleavehospismRs", tocode: "Hospital_MRS_Bool", value: "0", type: "radio" },
            { name: "评分", code: "txtjmleavehospmRsVal", tocode: "Hospital_MRS_Score", value: "", type: "text" },
            { name: "出院NIHSS评分", code: "rdojmexitisHihss", tocode: "Hospital_Nihss_Bool", value: "0", type: "radio" },
            { name: "评分", code: "txtjmexitHihssVal", tocode: "Hospital_Nihss_Score", value: "", type: "text" },
            { name: "出院带药", code: "cbxjmexitpwithy", tocode: "Hospital_Drug_Bool", value: "", type: "checkbox" }
        ]
    },
    {
        table: "patientSigns",
        column: [
            { name: "ID", code: "txtPSId", tocode: "PATIENT_SIGNS_ID", value: "0", type: "text" },
            { name: "txtpatId", code: "txtpatId", tocode: "PATIENT_ID", value: "", type: "text" },
            { name: "民族", code: "txtethnic", tocode: "Patient_National", value: "", type: "text" },
            { name: "医疗付款方式", code: "chkmedicalinsurance", tocode: "Patient_Pay_Type", value: "", type: "radio" },
            { name: "住院次数", code: "txtlivePcount", tocode: "Patient_Hospital_Num", value: "", type: "text" },
            { name: "BMI(kg/㎡)", code: "txtbmiVal", tocode: "Patient_BMI", value: "", type: "text" },
            { name: "脉搏(次/分)", code: "txtpmbVal", tocode: "PATIENT_HEART", value: "", type: "text" },
            { name: "收缩压(mmHg)", code: "txtpssyVal", tocode: "PATIENT_BLOOD_H", value: "", type: "text" },
            { name: "舒张压(mmHg)", code: "txtpszyVal", tocode: "PATIENT_BLOOD_L", value: "", type: "text" },
            { name: "身高(cm)", code: "txtpheigh", tocode: "Patient_Height", value: "", type: "text" },
            { name: "体重(kg)", code: "txtpweight", tocode: "Patient_Weight", value: "", type: "text" }
        ]
    }
]
